/*
 *	recorder9.h
 *
 *	general defines -- for 3d version
 *
 *	for recorder9.c = trumpet version
 */

#include <stdio.h>
#include <math.h>
double sin(),cos();
#include <strings.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <omp.h>
#include <errno.h>

#define N_X_MAX	4000
#define N_Y_MAX	2000
#define N_Z_MAX	2000

#define N_MAX_3	15000000		/* number of boundary points on recorder */
		
#define N_GRID_MAX	5000	/* max number of grid points along x or y in nonuniform grid */

#define N_INIT_Y	1000
#define N_INIT_Z	1000

#define YES			0
#define NO			1
#define ADACHI			2

#define ON			2
#define OFF			3

#define CURRENT			0
#define NEW			1
#define OLD			2

#define	OPEN			30
#define LOWER_X_BOUNDARY	31
#define UPPER_X_BOUNDARY	32
#define LOWER_Y_BOUNDARY	33
#define UPPER_Y_BOUNDARY	34
#define LOWER_Z_BOUNDARY	35
#define UPPER_Z_BOUNDARY	36
#define SOLID			37
#define INIT_POINT		38
#define LEFT_LIP		39
#define RIGHT_LIP		40
#define GHOST			41
#define PIVOT			42
#define TOUCH			43

#define NOT_STARTED		0
#define STARTED			1

#define START_FRESH		0
#define RE_START		1

#define U			0
#define V			1
#define W			2
#define RHO			3

/* used by vector field graphing routine	*/
#define RIGHT			0
#define LEFT			1
#define UP			2
#define DOWN			3
#define UPPER_RIGHT		4
#define UPPER_LEFT		5
#define LOWER_RIGHT		6
#define LOWER_LEFT		7

/* used to classify points on the boundary of the recorder	*/
#define XUP			20
#define XDOWN			21
#define YUP			22
#define YDOWN			23
#define ZUP			24
#define ZDOWN			25
#define CORNER			26

#define TOL			0.003

#define LEADING_EDGE		0
#define TRAILING_EDGE		1
#define MIDDLE			2

#define VERBOSE			0
#define QUIET			1

#define COVERED_BY_LIP		0
#define NOT_COVERED_BY_LIP	1
